/*
 * 版权所有 (C) 2015 知启蒙(ZHIQIM) 保留所有权利。[遇见知启蒙，邂逅框架梦]
 * 
 * 知启蒙数据库映射（zhiqim_orm）在LGPL3.0协议下开源：https://www.zhiqim.com/gitcan/zhiqim/zhiqim_orm.htm
 *
 * This file is part of [zhiqim_orm].
 * 
 * [zhiqim_orm] is free software: you can redistribute
 * it and/or modify it under the terms of the GNU Lesser General Public License
 * as published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 * 
 * [zhiqim_orm] is distributed in the hope that it will
 * be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License for more details.
 * 
 * You should have received a copy of the GNU Lesser General Public License
 * along with [zhiqim_orm].
 * If not, see <http://www.gnu.org/licenses/>.
 */
package org.zhiqim.orm.test.qc.dbo;

import java.io.Serializable;

import org.zhiqim.kernel.annotation.AnAlias;
import org.zhiqim.kernel.annotation.AnNew;
import org.zhiqim.kernel.json.Jsons;
import org.zhiqim.orm.annotation.*;

/**
 * 问答问题表 对应表《QC_QUESTION$ID$》
 */
@AnAlias("QcQuestion")
@AnNew
@AnTable(table="QC_QUESTION$ID$", key="QUESTION_ID", type="InnoDB")
public class QcQuestion implements Serializable
{
    private static final long serialVersionUID = 1L;

    @AnTableReplace("ID")    private String id;
    @AnTableField(column="QUESTION_ID", type="long", notNull=true)    private long questionId;    //1.问题编号
    @AnTableField(column="QUESTION_TYPE", type="int", notNull=true)    private int questionType;    //2.问题类型： 0技术疑问 1职业疑惑 2生活杂谈 3资讯动态 4其他
    @AnTableField(column="QUESTION_STATUS", type="int", notNull=true)    private int questionStatus;    //3.问题状态：0表示正常，1表示停用
    @AnTableField(column="QUESTION_TITLE", type="string,100", notNull=true)    private String questionTitle;    //4.问题标题
    @AnTableField(column="QUESTION_DESC", type="string,4000", notNull=true)    private String questionDesc;    //5.问题描述
    @AnTableField(column="QUESTION_USER_ID", type="long", notNull=true)    private long questionUserId;    //6.问题作者编号
    @AnTableField(column="QUESTION_CREATE_TIME", type="string,19,char", notNull=true)    private String questionCreateTime;    //7.问题发表时间
    @AnTableField(column="QUESTION_REPLY_NUM", type="int", notNull=true)    private int questionReplyNum;    //8.问题评论数
    @AnTableField(column="QUESTION_READ_NUM", type="int", notNull=true)    private int questionReadNum;    //9.问题阅读数

    public String toString()
    {
        return Jsons.toString(this);
    }

    public long getQuestionId()
    {
        return questionId;
    }

    public void setQuestionId(long questionId)
    {
        this.questionId = questionId;
    }

    public int getQuestionType()
    {
        return questionType;
    }

    public void setQuestionType(int questionType)
    {
        this.questionType = questionType;
    }

    public int getQuestionStatus()
    {
        return questionStatus;
    }

    public void setQuestionStatus(int questionStatus)
    {
        this.questionStatus = questionStatus;
    }

    public String getQuestionTitle()
    {
        return questionTitle;
    }

    public void setQuestionTitle(String questionTitle)
    {
        this.questionTitle = questionTitle;
    }

    public String getQuestionDesc()
    {
        return questionDesc;
    }

    public void setQuestionDesc(String questionDesc)
    {
        this.questionDesc = questionDesc;
    }

    public long getQuestionUserId()
    {
        return questionUserId;
    }

    public void setQuestionUserId(long questionUserId)
    {
        this.questionUserId = questionUserId;
    }

    public String getQuestionCreateTime()
    {
        return questionCreateTime;
    }

    public void setQuestionCreateTime(String questionCreateTime)
    {
        this.questionCreateTime = questionCreateTime;
    }

    public int getQuestionReplyNum()
    {
        return questionReplyNum;
    }

    public void setQuestionReplyNum(int questionReplyNum)
    {
        this.questionReplyNum = questionReplyNum;
    }

    public int getQuestionReadNum()
    {
        return questionReadNum;
    }

    public void setQuestionReadNum(int questionReadNum)
    {
        this.questionReadNum = questionReadNum;
    }

    public String getId()
    {
        return id;
    }

    public int getIdInt()
    {
        return Integer.parseInt(id);
    }

    public long getIdLong()
    {
        return Long.parseLong(id);
    }

    public void setId(String id)
    {
        this.id = id;
    }

    public void setIdInt(int id)
    {
        this.id = String.valueOf(id);
    }

    public void setIdLong(long id)
    {
        this.id = String.valueOf(id);
    }

}
